package com.yx.front.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yx.front.mapper.BookCollectMapper;
import com.yx.front.model.BookCollect;
import com.yx.front.service.BookCollectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 用户书本收藏表 服务实现类
 * </p>
 *
 * @author YangXiong
 * @since 2023-04-18
 */
@Service
public class BookCollectServiceImpl extends ServiceImpl<BookCollectMapper, BookCollect> implements BookCollectService {

    @Resource
    private BookCollectMapper bookCollectMapper;
    @Override
    public BookCollect getLogicOne(Long id, Long bookId) {
        return bookCollectMapper.getLogicOne(id, bookId);
    }

    @Override
    public Boolean updateLogicDelete(Long id, Long bookId) {
        return bookCollectMapper.updateLogicDelete(id, bookId);
    }
}
